import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/register',
      name: 'register',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/register.vue'),
    },
    {
      path: '/index',
      name: 'index',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/index.vue'),
      children: [
        {
          path: "/front",
          name: 'front',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/front.vue'),

        },
        {
          path: "/laboratory",
          name: 'laboratory',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/laboratory.vue'),

        },
        {
          path: "/device",
          name: 'device',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/device.vue'),

        },

        {
          path: "/user",
          name: 'user',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/user.vue'),

        },

        {
          path: "/yhxx",
          name: 'yhxx',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/yhxx.vue'),

        },
        {
          path: "/sysgl",
          name: 'sysgl',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/sysgl.vue'),

        },
        {
          path: "/syssbgl",
          name: 'syssbgl',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/syssbgl.vue'),

        },
        {
          path: "/sbsysq",
          name: 'sbsysq',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/sbsysq.vue'),

        },
        {
          path: "/sbwxsq",
          name: 'sbwxsq',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/sbwxsq.vue'),

        },

        {
          path: "/labAdminLab",
          name: 'labAdminLab',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/labAdminLab.vue'),

        },
        {
          path: "/labAdminEquipment",
          name: 'labAdminEquipment',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/labAdminEquipment.vue'),

        },
        {
          path: "/labadminsbsysq",
          name: 'labadminsbsysq',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/labadminsbsysq.vue'),

        },
        {
          path: "/labadminsbwxsq",
          name: 'labadminsbwxsq',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/labadminsbwxsq.vue'),

        },

        {
          path: "/adminsbsysq",
          name: 'adminsbsysq',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/adminsbsysq.vue'),

        },
        {
          path: "/adminsbwxsq",
          name: 'adminsbwxsq',
          // route level code-splitting
          // this generates a separate chunk (About.[hash].js) for this route
          // which is lazy-loaded when the route is visited.
          component: () => import('../views/adminsbwxsq.vue'),

        },



      ]
    },
  ],
})

export default router
